_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular-cli/CODE_OF_CONDUCT.md_0_3649
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering a safe and welcoming environment, we as the Angular team pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, ...
{ "end_byte": 3649, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/CODE_OF_CONDUCT.md" }
angular-cli/LICENSE_0_1105
The MIT License Copyright (c) 2010-2024 Google LLC. https://angular.dev/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use...
{ "end_byte": 1105, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/LICENSE" }
angular-cli/WORKSPACE_0_4925
workspace( name = "angular_cli", managed_directories = {"@npm": ["node_modules"]}, ) load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "bazel_skylib", sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f", urls = [ "https://mirr...
{ "end_byte": 4925, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/WORKSPACE" }
angular-cli/WORKSPACE_4927_8300
nodejs_register_toolchains( name = "node22", # The below can be removed once @rules_nodejs/nodejs is updated to latest which contains https://github.com/bazelbuild/rules_nodejs/pull/3701 node_repositories = { "22.0.0-darwin_arm64": ("node-v22.0.0-darwin-arm64.tar.gz", "node-v22.0.0-darwin-arm64", "e...
{ "end_byte": 8300, "start_byte": 4927, "url": "https://github.com/angular/angular-cli/blob/main/WORKSPACE" }
angular-cli/README.md_0_3860
<!-- BEFORE UPDATING THIS FILE, READ THIS. This file is automatically generated during release. It is important for you to not update README directly. - If you need to change the content, update `scripts/templates/readme.ejs` - If you need to add/remove a package or a link, update the .monorepo.json file in...
{ "end_byte": 3860, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/README.md" }
angular-cli/README.md_3860_10863
Packages This is a monorepo which contains many tools and packages: ### Tools | Project | Package | Version | Links | |---|---|---|---| **Angular Build System** | [`@angular/build`](https://npmjs.com/package/@angular/build) | [![latest](https://img.shields.io/npm/v/%40angular%2Fbuild/latest.svg)](https://npmjs.co...
{ "end_byte": 10863, "start_byte": 3860, "url": "https://github.com/angular/angular-cli/blob/main/README.md" }
angular-cli/constants.bzl_0_1097
# Engine versions to stamp in a release package.json RELEASE_ENGINES_NODE = "^18.19.1 || ^20.11.1 || >=22.0.0" RELEASE_ENGINES_NPM = "^6.11.0 || ^7.5.6 || >=8.0.0" RELEASE_ENGINES_YARN = ">= 1.13.0" SNAPSHOT_REPOS = { "@angular/cli": "angular/cli-builds", "@angular/pwa": "angular/angular-pwa-builds", "@ang...
{ "end_byte": 1097, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/constants.bzl" }
angular-cli/CONTRIBUTING.md_0_7325
# Contributing to Angular DevKit We would love for you to contribute to DevKit and help make it even better than it is today! As a contributor, here are the guidelines we would like you to follow: - [Code of Conduct](#coc) - [Question or Problem?](#question) - [Issues and Bugs](#issue) - [Feature Requests](#featu...
{ "end_byte": 7325, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md" }
angular-cli/CONTRIBUTING.md_7325_13061
<a name="commit"></a> Commit Message Guidelines We have very precise rules over how our git commit messages can be formatted. This leads to **more readable messages** that are easy to follow when looking through the **project history**. But also, we use the git commit messages to **generate the Angular DevKit change...
{ "end_byte": 13061, "start_byte": 7325, "url": "https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md" }
angular-cli/BUILD.bazel_0_1583
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin") load("@npm//@baze...
{ "end_byte": 1583, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/BUILD.bazel" }
angular-cli/SECURITY.md_0_413
Angular is part of Google [Open Source Software Vulnerability Reward Program](https://bughunters.google.com/about/rules/6521337925468160/google-open-source-software-vulnerability-reward-program-rules). For vulnerabilities in Angular, please submit your report [here](https://bughunters.google.com/report). For more info...
{ "end_byte": 413, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/SECURITY.md" }
angular-cli/tools/link_package_json_to_tarballs.bzl_0_3486
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license load("@aspect_bazel_lib//lib:jq.bzl", "jq") load("@aspect_bazel_lib//lib:utils.bzl", "to_label") def link_package_json_to_tarballs(name, sr...
{ "end_byte": 3486, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/link_package_json_to_tarballs.bzl" }
angular-cli/tools/ng_cli_schema_generator.bzl_0_1090
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license def _cli_json_schema_interface_impl(ctx): args = [ ctx.files.src[0].path, ctx.outputs.json.path, ] ctx.actions...
{ "end_byte": 1090, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/ng_cli_schema_generator.bzl" }
angular-cli/tools/quicktype_runner.js_0_4888
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const fs = require('fs'); const path = require('path'); const { InputData, JSONSchemaInput, JSONSchemaStore, ...
{ "end_byte": 4888, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/quicktype_runner.js" }
angular-cli/tools/ts_json_schema.bzl_0_1681
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license def _ts_json_schema_interface_impl(ctx): args = [ ctx.files.src[0].path, ctx.outputs.ts.path, ] ctx.actions.ru...
{ "end_byte": 1681, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/ts_json_schema.bzl" }
angular-cli/tools/snapshot_repo_filter.bzl_0_775
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license load("//:constants.bzl", "SNAPSHOT_REPOS") def _generate_snapshot_repo_filter(): filter = "" for (i, pkg_name) in enumerate(SNAPSH...
{ "end_byte": 775, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/snapshot_repo_filter.bzl" }
angular-cli/tools/ng_cli_schema_generator.js_0_3156
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ const { readFileSync, writeFileSync, mkdirSync } = require('fs'); const { resolve, dirname } = require('path'); /**...
{ "end_byte": 3156, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/ng_cli_schema_generator.js" }
angular-cli/tools/package_json_release_filter.jq_0_1282
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license # # This filter combines a subproject package.json with the root package.json # and performs substitutions to prepare it for release. It sho...
{ "end_byte": 1282, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/package_json_release_filter.jq" }
angular-cli/tools/BUILD.bazel_0_771
# Copyright Google Inc. All Rights Reserved. # # Use of this source code is governed by an MIT-style license that can be # found in the LICENSE file at https://angular.dev/license # @external_begin load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary") package(default_visibility = ["//visibility:public"]) exp...
{ "end_byte": 771, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/BUILD.bazel" }
angular-cli/tools/defaults.bzl_0_3392
"""Re-export of some bazel rules with repository-wide defaults.""" load("@aspect_bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory") load("@aspect_bazel_lib//lib:jq.bzl", "jq") load("@aspect_bazel_lib//lib:utils.bzl", "to_label") load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin", _js_library = "js_li...
{ "end_byte": 3392, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/defaults.bzl" }
angular-cli/tools/defaults.bzl_3394_12080
def pkg_npm(name, pkg_deps = [], use_prodmode_output = False, **kwargs): """Override of pkg_npm to produce package outputs and version substitutions conventional to the angular-cli project. Produces a package and a tar of that package. Expects a package.json file in the same folder to exist. Args: ...
{ "end_byte": 12080, "start_byte": 3394, "url": "https://github.com/angular/angular-cli/blob/main/tools/defaults.bzl" }
angular-cli/tools/toolchain_info.bzl_0_1491
# look at the toolchains registered in the workspace file with nodejs_register_toolchains # the name can be anything the user wants this is just added to the target to create unique names # the order will match against the order in the TOOLCHAIN_VERSION list. TOOLCHAINS_NAMES = [ "node18", "node20", "node2...
{ "end_byte": 1491, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/toolchain_info.bzl" }
angular-cli/tools/test/BUILD.bazel_0_979
load("@bazel_skylib//rules:diff_test.bzl", "diff_test") load("@aspect_bazel_lib//lib:jq.bzl", "jq") jq( name = "final_package_json", # This jq filter relies on the order of the inputs # buildifier: do not sort srcs = [ "root_package.json", "project_package.json", ], args = [ ...
{ "end_byte": 979, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tools/test/BUILD.bazel" }
angular-cli/tests/README.md_0_250
# `/tests` Folder Contains all e2e tests and test assets. ## `legacy-cli/` Contains all assets and all e2e tests from the legacy CLI repo. ## Others Other folders contain test assets related to the Package namespace folders matching their name.
{ "end_byte": 250, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/README.md" }
angular-cli/tests/legacy-cli/e2e.bzl_0_6649
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_test") load("//tools:toolchain_info.bzl", "TOOLCHAINS_NAMES", "TOOLCHAINS_VERSIONS") # bazel query --output=label "kind('pkg_tar', //packages/...)" TESTED_PACKAGES = [ "//packages/angular/build:npm_package_archive.tgz", "//packages/angular/cli:npm_package_a...
{ "end_byte": 6649, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e.bzl" }
angular-cli/tests/legacy-cli/verdaccio_auth.yaml_0_554
storage: ./storage auth: auth-memory: users: testing: name: testing password: s3cret listen: localhost:${HTTPS_PORT} uplinks: local: url: http://localhost:${HTTP_PORT} cache: false maxage: 20m max_fails: 32 timeout: 60s agent_options: keepAlive: true max...
{ "end_byte": 554, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/verdaccio_auth.yaml" }
angular-cli/tests/legacy-cli/verdaccio.yaml_0_803
storage: ./storage auth: auth-memory: users: {} listen: localhost:${HTTP_PORT} uplinks: npmjs: url: https://registry.npmjs.org/ cache: false maxage: 20m max_fails: 32 timeout: 60s agent_options: keepAlive: true maxSockets: 32 maxFreeSockets: 8 packages: '@angular/{b...
{ "end_byte": 803, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/verdaccio.yaml" }
angular-cli/tests/legacy-cli/BUILD.bazel_0_814
load("//tools:defaults.bzl", "ts_library") load(":e2e.bzl", "e2e_suites") ts_library( name = "runner", testonly = True, srcs = [ "e2e_runner.ts", ], data = [ "verdaccio.yaml", "verdaccio_auth.yaml", ], deps = [ "//packages/angular_devkit/core", "//pac...
{ "end_byte": 814, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/BUILD.bazel" }
angular-cli/tests/legacy-cli/e2e_runner.ts_0_7455
import { parseArgs } from 'node:util'; import { createConsoleLogger } from '../../packages/angular_devkit/core/node'; import colors from 'ansi-colors'; import glob from 'fast-glob'; import * as path from 'path'; import { getGlobalVariable, setGlobalVariable } from './e2e/utils/env'; import { gitClean } from './e2e/util...
{ "end_byte": 7455, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e_runner.ts" }
angular-cli/tests/legacy-cli/e2e_runner.ts_7457_13689
// Use the chrome supplied by bazel or the puppeteer chrome and webdriver-manager driver outside. // This is needed by karma-chrome-launcher, protractor etc. // https://github.com/karma-runner/karma-chrome-launcher#headless-chromium-with-puppeteer // // Resolve from relative paths to absolute paths within the bazel run...
{ "end_byte": 13689, "start_byte": 7457, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e_runner.ts" }
angular-cli/tests/legacy-cli/e2e/initialize/300-log-environment.ts_0_623
import { getActivePackageManager } from '../utils/packages'; import { exec, ng } from '../utils/process'; export default async function () { console.log('Environment:'); Object.keys(process.env).forEach((envName) => { // CI Logs should not contain environment variables that are considered secret const low...
{ "end_byte": 623, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/initialize/300-log-environment.ts" }
angular-cli/tests/legacy-cli/e2e/initialize/BUILD.bazel_0_283
load("//tools:defaults.bzl", "ts_library") ts_library( name = "initialize", testonly = True, srcs = glob(["**/*.ts"]), data = [ "//:config-files", ], visibility = ["//visibility:public"], deps = [ "//tests/legacy-cli/e2e/utils", ], )
{ "end_byte": 283, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/initialize/BUILD.bazel" }
angular-cli/tests/legacy-cli/e2e/initialize/500-create-project.ts_0_1906
import { join } from 'path'; import { getGlobalVariable } from '../utils/env'; import { expectFileToExist } from '../utils/fs'; import { gitClean } from '../utils/git'; import { setRegistry as setNPMConfigRegistry } from '../utils/packages'; import { ng } from '../utils/process'; import { prepareProjectForE2e, updateJs...
{ "end_byte": 1906, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/initialize/500-create-project.ts" }
angular-cli/tests/legacy-cli/e2e/setup/200-create-project-dir.ts_0_636
import { mkdir } from 'fs/promises'; import { join } from 'path'; import { getGlobalVariable, setGlobalVariable } from '../utils/env'; /** * Create a parent directory for test projects to be created within. * Change the cwd() to that directory in preparation for launching the cli. */ export default async function (...
{ "end_byte": 636, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/setup/200-create-project-dir.ts" }
angular-cli/tests/legacy-cli/e2e/setup/100-global-cli.ts_0_761
import { getGlobalVariable } from '../utils/env'; import { getActivePackageManager } from '../utils/packages'; import { globalNpm } from '../utils/process'; const PACKAGE_MANAGER_VERSION = { 'npm': '10.8.1', 'yarn': '1.22.22', 'pnpm': '9.3.0', 'bun': '1.1.13', }; export default async function () { const arg...
{ "end_byte": 761, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/setup/100-global-cli.ts" }
angular-cli/tests/legacy-cli/e2e/setup/002-npm-sandbox.ts_0_2497
import { mkdir, writeFile } from 'fs/promises'; import { join } from 'path'; import { getGlobalVariable, setGlobalVariable } from '../utils/env'; /** * Configure npm to use a unique sandboxed environment. */ export default async function () { const tempRoot: string = getGlobalVariable('tmp-root'); const npmModul...
{ "end_byte": 2497, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/setup/002-npm-sandbox.ts" }
angular-cli/tests/legacy-cli/e2e/setup/BUILD.bazel_0_231
load("//tools:defaults.bzl", "ts_library") ts_library( name = "setup", testonly = True, srcs = glob(["**/*.ts"]), visibility = ["//visibility:public"], deps = [ "//tests/legacy-cli/e2e/utils", ], )
{ "end_byte": 231, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/setup/BUILD.bazel" }
angular-cli/tests/legacy-cli/e2e/setup/010-local-publish.ts_0_950
import { writeFile } from 'node:fs/promises'; import { join } from 'node:path/posix'; import { getGlobalVariable } from '../utils/env'; import { PkgInfo } from '../utils/packages'; import { globalNpm, extractNpmEnv } from '../utils/process'; import { isPrereleaseCli } from '../utils/project'; export default async func...
{ "end_byte": 950, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/setup/010-local-publish.ts" }
angular-cli/tests/legacy-cli/e2e/setup/001-create-tmp-dir.ts_0_607
import { dirname } from 'path'; import { getGlobalVariable, setGlobalVariable } from '../utils/env'; import { mktempd } from '../utils/utils'; export default async function () { const argv = getGlobalVariable('argv'); // Get to a temporary directory. let tempRoot: string; if (argv.reuse) { tempRoot = dirn...
{ "end_byte": 607, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/setup/001-create-tmp-dir.ts" }
angular-cli/tests/legacy-cli/e2e/tests/BUILD.bazel_0_436
load("//tools:defaults.bzl", "ts_library") ts_library( name = "tests", testonly = True, srcs = glob(["**/*.ts"]), data = [ "//tests/legacy-cli/e2e/ng-snapshot", ], visibility = ["//visibility:public"], deps = [ "//tests/legacy-cli/e2e/utils", "@npm//@types/express", ...
{ "end_byte": 436, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/BUILD.bazel" }
angular-cli/tests/legacy-cli/e2e/tests/misc/target-default-configuration.ts_0_1196
import { expectFileToExist } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; import { expectToFail } from '../../utils/utils'; export default async function () { await updateJsonFile('angular.json', (workspace) => { const build = workspace.pr...
{ "end_byte": 1196, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/target-default-configuration.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/nested-schematic-packages.ts_0_410
import { copyAssets } from '../../utils/assets'; import { expectFileToExist } from '../../utils/fs'; import { ng } from '../../utils/process'; export default async function () { await copyAssets('nested-schematic-main', 'nested'); await copyAssets('nested-schematic-dependency', 'nested/node_modules/empty-app-neste...
{ "end_byte": 410, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/nested-schematic-packages.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/dedupe-duplicate-modules.ts_0_2169
import { expectFileToMatch, rimraf, writeFile } from '../../utils/fs'; import { gitClean } from '../../utils/git'; import { installWorkspacePackages } from '../../utils/packages'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; import { expectToFail } from '../../utils/ut...
{ "end_byte": 2169, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/dedupe-duplicate-modules.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/trace-resolution.ts_0_840
import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default async function () { await updateJsonFile('tsconfig.json', (tsconfig) => { tsconfig.compilerOptions.traceResolution = true; }); const { stdout: stdoutTraced } = await ng('build', '--configuration=de...
{ "end_byte": 840, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/trace-resolution.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/fallback.ts_0_1439
import * as assert from 'assert'; import { killAllProcesses } from '../../utils/process'; import { ngServe } from '../../utils/project'; import { updateJsonFile } from '../../utils/project'; import { moveFile } from '../../utils/fs'; export default function () { // TODO(architect): Delete this test. It is now in dev...
{ "end_byte": 1439, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/fallback.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/supported-angular.ts_0_1592
import { SemVer } from 'semver'; import { getGlobalVariable } from '../../utils/env'; import { readFile, writeFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default async function () { if (getGlobalVariable('argv')['ng-snapshots']) { ...
{ "end_byte": 1592, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/supported-angular.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/negated-boolean-options.ts_0_542
import { copyAssets } from '../../utils/assets'; import { execAndWaitForOutputToMatch } from '../../utils/process'; export default async function () { await copyAssets('schematic-boolean-option-negated', 'schematic-boolean-option-negated'); await execAndWaitForOutputToMatch( 'ng', ['generate', './schemati...
{ "end_byte": 542, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/negated-boolean-options.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/browsers.ts_0_1609
import express from 'express'; import * as path from 'path'; import { copyProjectAsset } from '../../utils/assets'; import { replaceInFile } from '../../utils/fs'; import { ng } from '../../utils/process'; export default async function () { // Ensure SauceLabs configuration if (!process.env['SAUCE_USERNAME'] || !p...
{ "end_byte": 1609, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/browsers.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/workspace-verification.ts_0_492
import { deleteFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default function () { return ( ng('generate', 'component', 'foo', '--dry-run') .then(() => deleteFile('angular.json')) // fails because it needs to be inside...
{ "end_byte": 492, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/workspace-verification.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/ask-missing-builder.ts_0_714
import { execAndWaitForOutputToMatch, killAllProcesses } from '../../utils/process'; export default async function () { // Execute a command with TTY force enabled and check that the prompt is shown. await execAndWaitForOutputToMatch( 'ng', ['deploy'], /Would you like to add a package with "deploy" cap...
{ "end_byte": 714, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/ask-missing-builder.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/es2015-nometa.ts_0_624
import { prependToFile, replaceInFile } from '../../utils/fs'; import { ng } from '../../utils/process'; export default async function () { await ng('generate', 'service', 'user'); // Update the application to use the new service await prependToFile('src/app/app.component.ts', "import { UserService } from './us...
{ "end_byte": 624, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/es2015-nometa.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/http-headers.ts_0_1436
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default asyn...
{ "end_byte": 1436, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/http-headers.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/duplicate-command-line-option.ts_0_569
import { ng } from '../../utils/process'; import { expectFileToExist } from '../../utils/fs'; export default async function () { const { stderr } = await ng( 'generate', 'component', 'test-component', '--style=scss', '--style=sass', ); const warningMatch = `Option 'style' has been specified ...
{ "end_byte": 569, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/duplicate-command-line-option.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/proxy-config.ts_0_1337
import express from 'express'; import * as http from 'http'; import { writeFile } from '../../utils/fs'; import { ngServe } from '../../utils/project'; import { AddressInfo } from 'net'; import * as assert from 'assert'; export default function () { // TODO(architect): Delete this test. It is now in devkit/build-an...
{ "end_byte": 1337, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/proxy-config.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/multiple-targets.ts_0_382
import { expectFileToExist } from '../../utils/fs'; import { ng } from '../../utils/process'; export default async function () { await ng('generate', 'app', 'secondary-app'); await ng('build', 'secondary-app', '--configuration=development'); await expectFileToExist('dist/secondary-app/browser/index.html'); awa...
{ "end_byte": 382, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/multiple-targets.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/e2e-host.ts_0_772
import * as os from 'os'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default async function () { const interfaces = Object.values(os.networkInterfaces()).flat() as os.NetworkInterfaceInfo[]; let host = ''; for (const { family, address, internal } of int...
{ "end_byte": 772, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/e2e-host.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/trusted-types.ts_0_2293
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { replaceInFile, writeFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { update...
{ "end_byte": 2293, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/trusted-types.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/create-angular.ts_0_1741
import { equal } from 'node:assert'; import { join, resolve } from 'node:path'; import { expectFileToExist, readFile, rimraf } from '../../utils/fs'; import { getActivePackageManager } from '../../utils/packages'; import { silentBun, silentNpm, silentPnpm, silentYarn } from '../../utils/process'; export default async ...
{ "end_byte": 1741, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/create-angular.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/loaders-resolution.ts_0_1320
import { createDir, moveFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { assertIsError } from '../../utils/utils'; export default async function () { await createDir('node_modules/@angular-devkit/build-angular/node_modules'); let originalInRootNodeModules = true; try { await ...
{ "end_byte": 1320, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/loaders-resolution.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/invalid-schematic-dependencies.ts_0_2056
import { join } from 'node:path'; import { expectFileToMatch } from '../../utils/fs'; import { execWithEnv, extractNpmEnv, ng, silentNpm } from '../../utils/process'; import { getActivePackageManager, installPackage, uninstallPackage } from '../../utils/packages'; import { isPrereleaseCli } from '../../utils/project'; ...
{ "end_byte": 2056, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/invalid-schematic-dependencies.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/version.ts_0_675
import { deleteFile } from '../../utils/fs'; import { ng } from '../../utils/process'; export default async function () { const { stdout: commandOutput } = await ng('version'); if (commandOutput.includes(process.versions.node + ' (Unsupported)')) { throw new Error('Node version should not show unsupported ent...
{ "end_byte": 675, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/version.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/update-git-clean.ts_0_445
import { appendToFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default async function () { await appendToFile('src/main.ts', "console.log('changed');\n"); const { message } = await expectToFail(() => ng('update', '@angular/cli')); ...
{ "end_byte": 445, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/update-git-clean.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/check-postinstalls.ts_0_1844
import glob from 'fast-glob'; import { readFile } from '../../utils/fs'; const CURRENT_SCRIPT_PACKAGES: ReadonlySet<string> = new Set([ 'esbuild (postinstall)', 'lmdb (install)', 'msgpackr-extract (install)', 'nice-napi (install)', ]); const POTENTIAL_SCRIPTS: ReadonlyArray<string> = ['preinstall', 'install',...
{ "end_byte": 1844, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/check-postinstalls.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/third-party-decorators.ts_0_5754
import { writeMultipleFiles } from '../../utils/fs'; import { installWorkspacePackages } from '../../utils/packages'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default async function () { await updateJsonFile('package.json', (packageJson) => { // Insta...
{ "end_byte": 5754, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/third-party-decorators.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/forwardref-es2015.ts_0_1578
import { appendToFile, replaceInFile } from '../../utils/fs'; import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default async function () { // Update the application to use a forward reference await replaceInFile( 'src/app/app.component.ts', "import { Compon...
{ "end_byte": 1578, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/forwardref-es2015.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/karma-error-paths.ts_0_825
import { writeMultipleFiles } from '../../utils/fs'; import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default async function () { await writeMultipleFiles({ 'src/app/app.component.spec.ts': ` describe('AppComponent', () => { it('failing test', (...
{ "end_byte": 825, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/karma-error-paths.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/update-git-clean-subdirectory.ts_0_872
import { getGlobalVariable } from '../../utils/env'; import { createDir, writeFile } from '../../utils/fs'; import { ng, silentGit } from '../../utils/process'; import { prepareProjectForE2e } from '../../utils/project'; export default async function () { process.chdir(getGlobalVariable('projects-root')); await c...
{ "end_byte": 872, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/update-git-clean-subdirectory.ts" }
angular-cli/tests/legacy-cli/e2e/tests/misc/module-resolution/module-resolution-core-mapping.ts_0_1448
import { createDir, moveFile } from '../../../utils/fs'; import { ng } from '../../../utils/process'; import { updateJsonFile } from '../../../utils/project'; import { expectToFail } from '../../../utils/utils'; export default async function () { await updateJsonFile('tsconfig.json', (tsconfig) => { tsconfig.com...
{ "end_byte": 1448, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/misc/module-resolution/module-resolution-core-mapping.ts" }
angular-cli/tests/legacy-cli/e2e/tests/web-test-runner/basic.ts_0_390
import { noSilentNg } from '../../utils/process'; import { applyWtrBuilder } from '../../utils/web-test-runner'; export default async function () { await applyWtrBuilder(); const { stderr } = await noSilentNg('test'); if (!stderr.includes('Web Test Runner builder is currently EXPERIMENTAL')) { throw new Er...
{ "end_byte": 390, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/web-test-runner/basic.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-scripts.ts_0_2568
import { writeMultipleFiles } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; import { expectToFail } from '../../utils/utils'; export default async function () { // TODO(architect): Delete this test. It is now in devkit/build-angular. await n...
{ "end_byte": 2568, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-scripts.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-include-glob.ts_0_142
import { ng } from '../../utils/process'; export default async function () { await ng('test', '--no-watch', `--include='**/*.spec.ts'`); }
{ "end_byte": 142, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-include-glob.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-sourcemap.ts_0_923
import { writeFile } from '../../utils/fs'; import { ng } from '../../utils/process'; export default async function () { await writeFile( 'src/app/app.component.spec.ts', ` it('show fail', () => { expect(undefined).toBeTruthy(); }); `, ); // when sourcemaps are 'on' the stacktrac...
{ "end_byte": 923, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-sourcemap.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-environment.ts_0_1754
import { ng } from '../../utils/process'; import { writeFile, writeMultipleFiles } from '../../utils/fs'; import { updateJsonFile } from '../../utils/project'; export default function () { // Tests run in 'dev' environment by default. return ( writeMultipleFiles({ 'src/environment.prod.ts': ` expor...
{ "end_byte": 1754, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-environment.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-fail-single-run.ts_0_449
import { ng } from '../../utils/process'; import { writeFile } from '../../utils/fs'; import { expectToFail } from '../../utils/utils'; export default function () { // TODO(architect): Delete this test. It is now in devkit/build-angular. // Fails on single run with broken compilation. return writeFile('src/app....
{ "end_byte": 449, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-fail-single-run.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-code-coverage-exclude.ts_0_788
import { expectFileToExist, rimraf } from '../../utils/fs'; import { silentNg } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default async function () { // This test is already in build-angular, but that doesn't run on Windows. await silentNg('test', '--no-watch', '--code-co...
{ "end_byte": 788, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-code-coverage-exclude.ts" }
angular-cli/tests/legacy-cli/e2e/tests/test/test-jasmine-clock.ts_0_763
import { ng } from '../../utils/process'; import { writeFile } from '../../utils/fs'; export default async function () { await writeFile( 'src/app/app.component.spec.ts', ` import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => {...
{ "end_byte": 763, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/test/test-jasmine-clock.ts" }
angular-cli/tests/legacy-cli/e2e/tests/update/update-multiple-versions.ts_0_1695
import { createProjectFromAsset } from '../../utils/assets'; import { setRegistry } from '../../utils/packages'; import { ng } from '../../utils/process'; import { isPrereleaseCli } from '../../utils/project'; import { expectToFail } from '../../utils/utils'; export default async function () { let restoreRegistry: (...
{ "end_byte": 1695, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/update/update-multiple-versions.ts" }
angular-cli/tests/legacy-cli/e2e/tests/update/update-application-builder.ts_0_1326
import { match } from 'node:assert'; import { createProjectFromAsset } from '../../utils/assets'; import { expectFileMatchToExist, expectFileNotToExist, expectFileToExist, expectFileToMatch, } from '../../utils/fs'; import { execAndWaitForOutputToMatch, ng, noSilentNg } from '../../utils/process'; import { find...
{ "end_byte": 1326, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/update/update-application-builder.ts" }
angular-cli/tests/legacy-cli/e2e/tests/update/update-secure-registry.ts_0_1822
import { exec, ng } from '../../utils/process'; import { createNpmConfigForAuthentication } from '../../utils/registry'; import { expectToFail } from '../../utils/utils'; import { isPrereleaseCli } from '../../utils/project'; import { getActivePackageManager } from '../../utils/packages'; import assert from 'node:asser...
{ "end_byte": 1822, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/update/update-secure-registry.ts" }
angular-cli/tests/legacy-cli/e2e/tests/update/update.ts_0_4502
import { appendFile } from 'fs/promises'; import { SemVer } from 'semver'; import { createProjectFromAsset } from '../../utils/assets'; import { expectFileMatchToExist, readFile } from '../../utils/fs'; import { getActivePackageManager } from '../../utils/packages'; import { ng, noSilentNg } from '../../utils/process';...
{ "end_byte": 4502, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/update/update.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/rebuild.ts_0_4354
import { setTimeout } from 'node:timers/promises'; import { getGlobalVariable } from '../../utils/env'; import { appendToFile, replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { ngServe } from '../../utils/project'; export...
{ "end_byte": 4354, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/rebuild.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/styles-array.ts_0_2068
import { expectFileToMatch, writeMultipleFiles } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default async function () { await writeMultipleFiles({ 'src/string-style.css': '.string-style { color: red }', 'src/input-style.css': ...
{ "end_byte": 2068, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/styles-array.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/command-scope.ts_0_1003
import assert from 'node:assert/strict'; import { homedir } from 'node:os'; import { silentNg } from '../../utils/process'; export default async function () { // Run inside workspace await silentNg('generate', 'component', 'foo', '--dry-run'); // The version command can be run in and outside of a workspace. a...
{ "end_byte": 1003, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/command-scope.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/e2e.ts_0_433
import assert from 'node:assert/strict'; import { setTimeout } from 'node:timers/promises'; import { silentNg } from '../../utils/process'; export default async function () { await assert.rejects(silentNg('e2e', 'test-project', '--dev-server-target=')); // These should work. await silentNg('e2e', 'test-project'...
{ "end_byte": 433, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/e2e.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/scripts-array.ts_0_3332
import { getGlobalVariable } from '../../utils/env'; import { appendToFile, expectFileToMatch, writeMultipleFiles } from '../../utils/fs'; import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default async function () { await writeMultipleFiles({ 'src/string-scri...
{ "end_byte": 3332, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/scripts-array.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/test.ts_0_1679
import { ng } from '../../utils/process'; import { writeMultipleFiles } from '../../utils/fs'; export default async function () { // make sure both --watch=false work await ng('test', '--watch=false'); // Works with custom config await writeMultipleFiles({ './karma.conf.bis.js': ` // Karma configura...
{ "end_byte": 1679, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/test.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/serve.ts_0_823
import { killAllProcesses } from '../../utils/process'; import { ngServe } from '../../utils/project'; export default async function () { // Serve works without HMR const noHmrPort = await ngServe('--no-hmr'); await verifyResponse(noHmrPort); await killAllProcesses(); // Serve works with HMR const hmrPort...
{ "end_byte": 823, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/serve.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/aot.ts_0_428
import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { ng } from '../../utils/process'; /** * AOT builds should contain generated component factories */ export default async function () { await ng('build', '--aot=true', '--configuration=development'); const content = await...
{ "end_byte": 428, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/aot.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/run.ts_0_1162
import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { getGlobalVariable } from '../../utils/env'; import { silentNg } from '../../utils/process'; const OUTPUT_INDEX_PATH = 'dist/test-project/browser/index.html'; export default async function () { // Development build await...
{ "end_byte": 1162, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/run.ts" }
angular-cli/tests/legacy-cli/e2e/tests/basic/build.ts_0_1447
import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import { getGlobalVariable } from '../../utils/env'; import { ng } from '../../utils/process'; const OUTPUT_INDEX_PATH = 'dist/test-project/browser/index.html'; export default async function () { // Development build const { std...
{ "end_byte": 1447, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/basic/build.ts" }
angular-cli/tests/legacy-cli/e2e/tests/vite/ssr-entry-express.ts_0_4572
import assert from 'node:assert'; import { setTimeout } from 'node:timers/promises'; import { replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { ng, silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { installWorkspacePackages, uninstallPackage } from '../../utils/packages'; ...
{ "end_byte": 4572, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/vite/ssr-entry-express.ts" }
angular-cli/tests/legacy-cli/e2e/tests/vite/ssr-error-stack.ts_0_1117
import { doesNotMatch, match } from 'node:assert'; import { ng } from '../../utils/process'; import { appendToFile, rimraf } from '../../utils/fs'; import { ngServe, useSha } from '../../utils/project'; import { installWorkspacePackages } from '../../utils/packages'; export default async function () { // Forcibly re...
{ "end_byte": 1117, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/vite/ssr-error-stack.ts" }
angular-cli/tests/legacy-cli/e2e/tests/vite/reuse-dep-optimization-cache.ts_0_1183
import assert from 'node:assert'; import { findFreePort } from '../../utils/network'; import { execAndWaitForOutputToMatch, killAllProcesses, ng, waitForAnyProcessOutputToMatch, } from '../../utils/process'; export default async function () { await ng('cache', 'clean'); await ng('cache', 'on'); const po...
{ "end_byte": 1183, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/vite/reuse-dep-optimization-cache.ts" }
angular-cli/tests/legacy-cli/e2e/tests/vite/ssr-entry-h3.ts_0_4016
import assert from 'node:assert'; import { setTimeout } from 'node:timers/promises'; import { replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { ng, silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { installPackage, installWorkspacePackages, uninstallPackage } from '../../u...
{ "end_byte": 4016, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/vite/ssr-entry-h3.ts" }
angular-cli/tests/legacy-cli/e2e/tests/vite/ssr-entry-hono.ts_0_3844
import assert from 'node:assert'; import { setTimeout } from 'node:timers/promises'; import { replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { ng, silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { installPackage, installWorkspacePackages, uninstallPackage } from '../../u...
{ "end_byte": 3844, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/vite/ssr-entry-hono.ts" }
angular-cli/tests/legacy-cli/e2e/tests/vite/ssr-entry-fastify.ts_0_4502
import assert from 'node:assert'; import { setTimeout } from 'node:timers/promises'; import { replaceInFile, writeMultipleFiles } from '../../utils/fs'; import { ng, silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { installPackage, installWorkspacePackages, uninstallPackage } from '../../u...
{ "end_byte": 4502, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/vite/ssr-entry-fastify.ts" }
angular-cli/tests/legacy-cli/e2e/tests/generate/generate-name-check.ts_0_997
import { join } from 'path'; import { ng } from '../../utils/process'; import { expectFileToExist } from '../../utils/fs'; import { updateJsonFile } from '../../utils/project'; export default function () { const compDir = join('src', 'app', 'test-component'); return ( Promise.resolve() .then(() => ...
{ "end_byte": 997, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/generate/generate-name-check.ts" }
angular-cli/tests/legacy-cli/e2e/tests/generate/schematic-defaults.ts_0_1144
import { ng } from '../../utils/process'; import { updateJsonFile } from '../../utils/project'; export default async function () { await updateJsonFile('angular.json', (config) => { config.projects['test-project'].schematics = { '@schematics/angular:component': { style: 'scss', }, }; })...
{ "end_byte": 1144, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/generate/schematic-defaults.ts" }
angular-cli/tests/legacy-cli/e2e/tests/generate/generate-name-error.ts_0_237
import { ng } from '../../utils/process'; import { expectToFail } from '../../utils/utils'; export default function () { return Promise.resolve().then(() => expectToFail(() => ng('generate', 'component', '1my-component')), ); }
{ "end_byte": 237, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/generate/generate-name-error.ts" }
angular-cli/tests/legacy-cli/e2e/tests/generate/generate-error.ts_0_279
import { ng } from '../../utils/process'; import { deleteFile } from '../../utils/fs'; import { expectToFail } from '../../utils/utils'; export default function () { return deleteFile('angular.json').then(() => expectToFail(() => ng('generate', 'class', 'hello')), ); }
{ "end_byte": 279, "start_byte": 0, "url": "https://github.com/angular/angular-cli/blob/main/tests/legacy-cli/e2e/tests/generate/generate-error.ts" }